package org.window;

import javafx.geometry.Pos;
import javafx.scene.image.Image;
import javafx.scene.layout.*;
import org.openModule.StageWindowsModule;
import org.openProcess.StageWindowsProcess;
import org.showData.StageWindowShow;
import org.sponsorship.StageWindowsSponsorship;


/**
 * 水平盒子
 */
public class PaneAndHBoxFrame {
    static {
        StageWindowsProcess.init();
        StageWindowsSponsorship.init();
        StageWindowsModule.init();
        StageWindowShow.init();

    }
    public static HBox hBox = new HBox();
    public static void init(){
        hBox.setLayoutX(0);
        hBox.setLayoutY(0);
        hBox.setPrefWidth(500);
        hBox.setPrefHeight(50);
        hBox.setAlignment(Pos.CENTER_LEFT);
//        new BackgroundImage(new Image("bgk.jpg"),BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.NO_REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)
        hBox.setBackground(new Background(new BackgroundImage(new Image("bgk.jpg"),BackgroundRepeat.NO_REPEAT ,BackgroundRepeat.REPEAT, BackgroundPosition.CENTER, BackgroundSize.DEFAULT)));
        hBox.getChildren().addAll(PaneAndHBoxFrameAndButtonOpenProcess.button,
                PaneAndHBoxFrameAndButtonMoudelAddress.button,
                PaneAndHBoxFrameAndButtonSave.button,
                PaneAndHBoxFrameAndButtonEnum.button,
                PaneAndHBoxFrameAndProgressBar.progressBar,
                PaneAndHBoxFrameAndButtonSetting.button

        );
        PaneAndHBoxFrameAndButtonOpenProcess.init();
        PaneAndHBoxFrameAndButtonSave.init();
        PaneAndHBoxFrameAndButtonEnum.init();
        PaneAndHBoxFrameAndProgressBar.init();
        PaneAndHBoxFrameAndButtonSetting.init();
        PaneAndHBoxFrameAndButtonMoudelAddress.init();
    }
}
